/**
 * Main CSS for Metavus Default Interface
 *
 * This file is split into eight sections:
 *      1: CONFIGURATION
 *      2: HTML STYLES
 *      3: BOOTSTRAP STYLES
 *      4: THIRD-PARTY STYLES
 *      5: LOCAL (NON-PAGE-SPECIFIC) STYLES - CLASS SELECTORS
 *      6: LOCAL (NON-PAGE-SPECIFIC) STYLES - ID SELECTORS
 *      7: LOCAL (PAGE-SPECIFIC) STYLES
 *      8: FONT DEFINITIONS
 *
 * IMPORTANT:
 * - Within sections, selectors should be alphabetized.
 * - For nested selectors, grouping is based on the top level.
 * - Do NOT add selectors that are order-dependent.
 */

/* ----- 1: CONFIGURATION ------------------------------------------------- */

// Rounding on images and block element backgrounds.
$BlockCornerRadius: 5px;


/* ----- 2: HTML STYLES --------------------------------------------------- */

a {
    color: black;
    span.mv-link-image {
        display: inline-block;
        svg {
            height: 1em;
        }
    }
}

a:hover {
    text-decoration: underline;
}

a:not([href]), a:not([href]):hover {
    color: white;
}

body {
    background-color: #dfdddb;
    font-family: "LibreFranklin", "Helvetica", sans-serif;
    line-height: 1.2rem;
    margin-left: 98px;
    margin-right: 98px;
    min-width: 350px;
}

:focus {
    outline-color: hotpink;
    outline-style: none;
    outline-width: 4px;
}

h1, h2, h3, h4, h5, h6 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    span.mv-title-image {
        display: inline-block;

        svg {
            height: 1em;
        }
    }
}

h2, h2 a, h2 a:visited {
    color: #787673;
    font-size: 1.9rem;
    font-weight: 500;
}

h3 {
    font-size: 1.66rem;
}

html {
    font-size: 14px;
}

p a {
    color: #606060;
    text-decoration: underline;
    text-decoration-color: #BBBBBB;
}

@media (max-width: 1199.98px) {
    body {
        margin-left: 50px;
        margin-right: 50px;
    }
}

@media (max-width: 1091.98px) {
    body {
        margin-left: 0;
        margin-right: 0;
    }
}


/* ----- 3: BOOTSTRAP STYLES ---------------------------------------------- */

.alert-danger {
    background-color: #FFEEEE;
}

.bg-light {
    .text-secondary {
        color: #6B737B !important;
    }
}

.btn-primary, .btn-danger {
    background: #3F3D3B;
    border-color: black;
    color: white;

    img[src$=".svg"] {
        filter: invert(100%);
        height: 1rem;
        padding-right: 0.25rem;
        margin-top: -0.25rem;
    }
}

.bg-secondary.text-white {
    .text-light {
        color: white !important;
    }
}

/* (for accessibility reasons, btn-sm should only be used for buttons */
/*      that are not part of anonymous or primary functionality) */
.btn-sm {
    padding: 2px 2px 0 2px;
    margin: 0 1px;
    font-size: 0.8rem;
    line-height: 1.0rem;
    white-space: nowrap;

    img.mv-button-icon {
        height: 0.8rem;
        padding-right: 0.1rem;
        margin-top: 0.01rem;
    }
}

.btn-sm > img {
    margin-bottom: 0.15rem;
}

.container, .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.list-group-flush {
    .list-group-item {
        padding: 0;
        background-color: inherit;
        border: none;
    }
}

.navbar {
    background-color: white;
}

.navbar-dark {
    .navbar-nav {
        .nav-link {
            color: rgba(255,255,255, 0.6);
        }

        .btn-primary {
            background: white;
        }

        .btn-primary:hover {
            background: #0020ff;
        }
    }
}

.nav-link {
    color: #3F3D3B;
    font-size: 1.273rem;
}

.thead-dark {
    a {
        color: white;
    }
}


/* ----- 4: THIRD-PARTY STYLES -------------------------------------------- */

/* --- jQueryUI STYLES */

ul.ui-autocomplete {
    width: 390px;
    list-style-type: none;
    padding-left: 0;
    border-left: 1px solid #C3C3C3;
    border-right: 1px solid #C3C3C3;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 0 3px 8px;
}

.ui-autocomplete-loading {
    background-image: url('../images/loading.gif');
    background-position: right center;
    background-repeat: no-repeat;
}

button.ui-dialog-titlebar-close {
    outline: none;
}

li.ui-menu-item:hover,
li.ui-menu-item.ui-state-focus {
    background-color: #C8C8C8 !important;
}

div.ui-menu-item-wrapper {
    /* Override jquery-ui's desire to have white text in selected quickesarch items */
    .mv-content-resourcesummary {
        color: black !important;

        a {
            color: black !important;
        }
    }
}

.ui-sortable {
    cursor: grab;
}

.ui-widget {
    font-family: "LibreFranklin", "Helvetica", sans-serif;
}

.ui-widget-content a.btn-primary {
    color: white;
}

.ui-widget-overlay {
    opacity: 0.90;
}


/* ----- 5: LOCAL (NON-PAGE-SPECIFIC) STYLES - CLASS SELECTORS ------------ */

span.mv-form-error,
label.mv-form-error {
    padding-left: 2px;
    padding-right: 2px;
    background-color: transparent;
    border-width: 2px;
    border-style: solid;
    border-radius: $BlockCornerRadius;
}

span.mv-form-error,
label.mv-form-error {
    border-color: #FF7777;
}

.mv-form-requiredfield {
    background-color: #FFEE77;
}

span.mv-form-requiredfield,
label.mv-form-requiredfield {
    padding-left: 2px;
    padding-right: 2px;
    background-color: transparent;
    border-color: #FFEE77;
    border-width: 2px;
    border-style: solid;
    border-radius: $BlockCornerRadius;
}

.mv-image-screenshot-container {
    width: 224px;
    height: 224px;
    background-color: #EBEBEB;

    img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }
}

.mv-itemlistui {
    .text-muted {
        color: #999999 !important;
    }
}

.mv-itemlistui-subheading {
    font-style: italic;
    margin-top: -1.5ex;
}

.mv-itemlistui-topbuttons {
    float: right;
    margin-top: 2em;
    margin-bottom: 10px;
}

.mv-link-decoration {
    display: inline-block;
    transform: rotate(-90deg);
    margin-right: 0.25em;
    font-weight: bold;
}

.mv-login-form-container {
    min-width: 14em;

    input#go {
        position: relative;
        top: 5px;
    }
}

.mv-p-collage-wrapper {
    overflow: hidden;
    min-width: calc( 100% + 60px);
    height: 420px;
    margin: 14px -30px;
    border-top: 2px solid #ebebeb;
    border-bottom: 2px solid #ebebeb;

}

.mv-p-collage-rollover {
    .ui-dialog-titlebar-close {
        display: none;
    }
}

.mv-p-collage {
    min-width: calc(100% + 200px);

    .mv-p-collage-tile {
        display: inline-block;
        img {
            object-fit: cover;
        }
    }

    :not(.mv-p-collage-tile) {
        img {
            margin-left: 50%;
            transform: translateX(-50%);
            position: absolute;
        }
    }
}

// TILE SET - Set of rectangular containers that dynamically rearrange into
//  rows depending on the width of the viewport.
// USAGE:  Uses four nested <div> levels.  Apply the mv-tileset class to the
//  top <div>, and then repeat at the second <div> level for each tile, with
//  tile content inside the innermost <div>.  Second level <div> should include
//  "col-xx-NN" classes (e.g. "col-12 col-md-6 col-lg-4 col-xl-3 col-xxl-2") to
//  trigger responsive tile rearranging.
.mv-tileset {
    $SpaceBetweenTiles: 10px;
    $TileBackgroundColor: #F4F4F4;
    $TilePadding: 15px;
    margin-left: 0 - $SpaceBetweenTiles;
    margin-right: 0 - $SpaceBetweenTiles;
    > div {
    padding-left: $SpaceBetweenTiles;
    padding-right: $SpaceBetweenTiles;
    margin-bottom: $SpaceBetweenTiles * 2;
        > div {
            height: 100%;
            display: flex;
            align-items: center;
            background-color: $TileBackgroundColor;
            border-radius: $BlockCornerRadius;
            > div {
                width: 100%;
                padding: $TilePadding;
            }
        }
    }
}

.mv-tile-collection {
    text-align: center;

    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1.1rem;
    }

    img:not(.mv-button-icon) {
        height: 150px;
        width: 150px;
        object-fit: contain;
        margin-top: 15px;
        margin-bottom: 10px;
        border-radius: $BlockCornerRadius;
    }

    .btn {
        z-index: 50;
        position: absolute;
        right: 14px;
        top: 5px;
    }
}

.mv-resourcesummary.container-fluid {
    .row {
        align-items: center;
    }

    img.mv-screenshot {
        object-fit: cover;
        object-position: left top;
        width: 224px;
        height: 224px;
        border-radius: $BlockCornerRadius;
    }

    @media (max-width: 767.98px) {
        img.mv-screenshot {
            width: 125px;
            height: 125px;
        }
    }

    .mv-content-categories {
        margin-top: 1em;

        a {
            font-size: 1.2rem;
            font-weight: 400;
            color: #787673;
        }
    }

    .mv-moreinfo {
        margin-top: 0.5rem;
    }

    .mv-resource-title {
        font-size: 1.273rem;
        font-weight: 500;
        margin-bottom: 1rem;
        display: inline-block;
    }

    .list-group-horizontal {
        .list-group-item {
            padding-bottom: calc( 1rem + 3px );
        }
    }
}

.mv-resourcesummary + .mv-resourcesummary {
    margin-top: 25px;
}

span.mv-search-arrow {
    position: absolute;
    top: 2px;
    left: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Zapf Dingbats", "Helvetica";
}

ul.mv-search-facets {
    padding-top: 10px;
    padding-bottom: 13px;

    .list-group-item {
        padding-left: 2.5rem;
        text-indent: -2.5rem;

        .mv-facet-checkbox {
            font-size: 1.5rem;
            position: relative;
            top: 1px;
        }
    }

    ul.mv-search-facets {
        padding-top: 0;
        padding-left: 1.6rem;
    }

    a:hover {
        text-decoration: none;
    }
}

div.mv-search-facets {
    padding-top: 13px;

    b {
        font-weight: 600;
    }
}

.mv-search-order-button {
    position: absolute;
    width: 27px;
    height: 18px;
    top: 8px;
    right: 12px;
}

.mv-search-order-button-text {
    position: absolute;
    top: 2px;
    left: 15px;
    font-size: 0.6em;
}

.mv-search-order-label {
    position: relative;
    padding: 1px 1px 1px 8px;
    line-height: 12px;
}

.mv-search-sort-controls-container {
    display: inline-block;
    width: 100%;
}

.mv-search-sort-form {
    label {
        margin-top: 8px;
    }
}

.mv-skip-link {
    a {
        position: absolute;
        top: -5em;
        background: white;
        z-index: 100;
        padding: 10px;
        border: 10px;
    }

    a:focus {
        position: absolute;
        top: 0 !important;
        transition: top .1s ease-in;
    }
}

.mv-stat-container {
    .mv-range-button {
        a {
            color: black;
        }
    }
}

button.mv-timestamp-update {
    float: right;
}

/* ----vvvv NEED ALPHABETIZATION vvvv---- */

.mv-form-fieldtype-quick_search {
    textarea {
        width: 100%;
    }
}

.mv-form-file-table, .mv-form-image-table {
    width: 100%;

    tr {
        background-color: inherit !important;
    }

    td {
        padding: 0.25em;
        border-top: none;
    }

    td:last-of-type {
        text-align: right;
        padding-right: 0;
    }
}

.mv-form-image-left {
    float: left;
}

.mv-form-image-right {
    float: right;
}

.mv-form-fieldtype-option {
    td {
        input + label {
            margin-right: 2em;
            display: inline;
        }
    }
}

.mv-form-fieldtype-privileges {
    td {
        padding: 0.2rem 0.7rem 0.2rem 0.7rem;
    }
    fieldset {
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
        vertical-align: middle;
    }
    .btn {
        margin-right: 1.2rem;
    }
    .priv-set {
        > button {
            margin-top: 0.4rem;
            margin-bottom: 0.4rem;
        }
        > p {
            margin-top: 0.4rem;
        }
    }
}

.mv-form-fieldtype-search_parameters {
    table {
        margin-left: 0.4rem;
    }
    td {
        padding: 0.2rem;
        vertical-align: middle;
    }
    .mv-speui-add, .mv-speui-add-subgroup {
        margin-top: 0.2rem;
    }
}

.mv-form-group-indicator {
    width: 0.75em;
    text-align: center;
    display: inline-block;
}

.mv-form-collapsible {
    cursor: pointer;
}

.mv-form-group-header {
    th {
        user-select: none;
        -webkit-user-select: none;
    }
}

.mv-form-group-hidden {
    tr {
        visibility: collapse;

        /*
          'visibility: collapse' *should* be sufficient to hide these
          elements, but alas Safari pretends that it's a synonym for
          'visibility: hidden'. Work around that by explicitly setting
          heights and margins on child elements to collapse them.
          See https://developer.mozilla.org/en-US/docs/Web/CSS/visibility#Notes
       */

        td, th {
            height: 0;
            line-height: 0;
            padding-top: 0;
            padding-bottom: 0;
            margin-top: 0;
            margin-bottom: 0;
            border-top-width: 0;
            border-bottom-width: 0;
            border-top-style: none;
            border-bottom-style: none;

            * {
                display: block;
                height: 0;
                padding-top: 0;
                padding-bottom: 0;
                margin-top: 0;
                margin-bottom: 0;
                border-top-width: 0;
                border-bottom-width: 0;
            }
        }
    }
}

tbody.mv-form-group + tbody.mv-form-group {
    border-top-style: solid;
    border-top-width: 2px;
    border-top-color: #32383e;
}


tbody.mv-form-group {
    th {
        text-align: right;
        padding-right: 0;

        img {
            float: left;
        }

        label::after {
            content: ":";
        }
    }

    input[type="checkbox"] + label {
        line-height: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .mv-mutable-widget {
        display: inline-block;
        width: 80%;
    }

    .mv-form-optlist {
        display: inline-block;
        width: 80%;
    }

    .mv-form-additional-html {
        display: inline-block;
        width: 20%;
        vertical-align: top;
        text-align: right;
    }


}

.mv-checkboxset {
    display: grid;
    writing-mode: vertical-lr;
    width: 100%;

    .mv-inputset-item {
        writing-mode: horizontal-tb;
        white-space: nowrap;

        input {
            display: inline-block;
            vertical-align: top;
        }

        label {
            white-space: normal;
            display: inline-block;
        }
    }
}

.mv-radiobuttonset-item {
    display: inline-block;
}

.priv-js-clone_target,
button.priv-js-add {
  display: none;
}

.mv-speui-form .mv-quicksearch {
  display: inline;

  .mv-resourceeditor-metadatafield {
    display: inline;
  }

  .mv-quicksearch-display {
    width: 50ex;
  }

}

.mv-quicksearch-menu {
  z-index: 100;
  position: fixed;
  border: 1px solid #C3C3C3;
  background-color: white;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 3px 8px;
  -moz-box-shadow: rgba(0, 0, 0, 0.3) 0 3px 8px;
  box-shadow: rgba(0, 0, 0, 0.3) 0 3px 8px;
}

.mv-quicksearch-moreresults {
  background-color: white;
  border: 1px solid black;
  padding: 5px;
}

.mv-quicksearch-message {
    padding: 5px;
    border: 1px solid black;
    background-color: white;
    position: absolute;
}

.mv-inline-edit-controls {
    float: right;
    padding-right: 5px;
}

.mv-inline-edit-edit {
    div[contenteditable] {
        outline-style: none;
    }
}

.mv-feui-form {
    .template_row {
        display: none;
    }
}

.mv-section-header h2 {
    margin-bottom: 1.4rem;
    text-transform: uppercase;
}

.mv-segment-toolbox {
    .mv-section-header {
        font-size: 1.3 rem;
        padding-bottom: 1rem;
        padding-top: 1.5rem;

        img:not(.mv-button-icon) {
            margin-top: -5px;
            height: 1.75rem;
            padding-right: 0.25rem;
        }
    }

    .mv-metadata-tool-nav {
        padding: 1.5rem 0.75rem 0;
    }

    .mv-sidebar-content {
        padding: 0.75rem;

        .mv-section-body {
            padding-left: 0.75rem;
            padding-right: 0.75rem;
        }
    }

    ul {
        margin-bottom: 0.5rem;
    }

    ul.mv-bullet-list {
        padding-left: 0;
        list-style-type: none;

        li {
            text-indent: -1.5rem;
            padding-left: 1.5rem;
        }

        li::before {
            content: "\B7";
            font-weight: bold;
        }
    }
}

/** Per https://getbootstrap.com/docs/4.0/content/tables/ "All table styles are inherited in Bootstrap 4, meaning any nested tables will be styled in the same manner as the parent."  The mv-table-nostripes class can be used to remove stripes from a nested table. */
.table-striped tbody .mv-table-nostripes {
    tr, th {
        background-color: transparent;
    }
}


/* ----- 6: LOCAL (NON-PAGE-SPECIFIC) STYLES - ID SELECTORS --------------- */

#mv-content-primary-nav {
    align-items: start;

    .nav-link:not(.navbar-brand):not(.dropdown-item) {
        margin-top: 11px;
        line-height:1.667rem;
    }

    ul.navbar-nav {
        li.nav-item:last-of-type {
            a.nav-link {
                padding-right: 0;
            }
        }
    }

    a.navbar-brand {
        padding-left: 0;
        margin-top: 1.2rem;
        margin-bottom: 0.9rem;
        font-weight: bold;
        font-size: 1.75rem;
        img {
            margin-top: -0.8rem;
            margin-bottom: -0.75rem;
            height: 37px;
        }
    }

    .mv-header-icon {
        padding-right: 0.375rem;
        display: inline-block;

        svg {
            margin-top: -4px;
            fill: #3f3d3b;
            height: 1.5rem;
        }
    }


    @media (min-width: 992px) {
        .nav-link {
            padding-left: 1rem;
            padding-right: 1rem;
        }

        a.navbar-brand {
            padding-right: 58px;
        }
    }
}

#mv-content-pagestats {
    margin-top: 2em;
    font-size: 0.8em;
}

#mv-content-primary-nav, #mv-segment-footer {
    padding: 17px 33px;
}

#mv-content-quicksearch {
    .mv-quicksearch-keywordsearch {
        width: 275px;
        height: 17px;
        font-size: 1.1em;
    }

    .mv-quicksearch {
        display: inline-block;

        .mv-quicksearch-display {
            height: 17px;
            font-size: 1.1em;
            width: 390px;
            margin: 0;
            padding: 0;
        }

        ul.ui-autocomplete { width: 200px; }
    }
}

#mv-content-toolbox {
    color: white;
    background-color: #747577;
    min-width: 240px;
    padding-top: 10px;
    padding-bottom: 1em;
    padding-left: 0;
    padding-right: 0;

    a {
        color: white;
    }

    b, strong {
        font-weight: 600;
    }

    .btn {
        float: right;
    }

    .mv-section {
        padding: 2rem 1.5rem 0 2rem;

        .mv-section-header {
            font-size: 1.3rem;
            padding-bottom: 1rem;

            img:not(.mv-button-icon) {
                margin-top: -5px;
                height: 1.75rem;
                filter: invert(100%);
                padding-right: 0.25rem;
            }
        }

        .mv-section-body {
            margin-left: 5px;
            font-size: 0.9rem;
            line-height: 1.0rem;

            ul {
                margin-bottom: 0.5rem;
            }

            ul.mv-bullet-list {
                padding-left: 0;
                list-style: none;

                li {
                    text-indent: -1.5rem;
                    padding-left: 1.5rem;
                }

                li::before {
                    content: "\B7";
                    font-weight: bold;
                }
            }
        }

        .mv-section-body.mv-section-secondary-nav {
            padding-top: 1rem;
            padding-bottom: 1rem;
            font-size: 1.2rem;
            line-height: 1.3rem;
        }
    }

    .mv-folders-sidebar {
        background-color: #6E7172;
        margin-top: 2rem;
        padding-bottom: 3.25rem;
        margin-bottom: 1rem;
    }
}

#mv-content-wrapper {
    .mv-section-footer {
        .col {
            padding: 0 15px;
        }
    }
}

#mv-inline-edit-dialog-confirm + .ui-dialog-buttonpane {
    .ui-button-icon.ui-icon-close {
        margin-top: 0;
        width: 16px;
        height: 16px;
        display: block;
        position: absolute;
        background-image: url("../images/cross.png");
        background-position: center;
    }
}

#mv-navbar-search {
    background-color: white;
    border-bottom: 2px solid #DFDDDB;
    padding: 15px;
    text-align: right;

    #F_SearchString {
        display: inline-block;
        margin-bottom: 5px;
        width: calc(100% - 11ex);
    }
    .btn {
        margin-left: 1ex;
    }
}

#mv-secondary-navigation-menu {
    padding: 2rem 1.5rem 0 2rem;
    > .col-12 > .row:first-child {
        font-weight: bold;
    }

    .col-3 {
        padding-left: 0;
        padding-right: 0;

        .btn {
            min-width: 55px;
        }

        .row:nth-of-type(2) .btn {
            margin-top: 0.25em;
        }
    }

    .mv-secondary-navigation-menu-item {
        margin: 5px 10px 0px -10px;
    }

    .mv-secondary-navigation-menu-item::before {
        content: "";
        background-image: url("../images/go_small.gif");
        width: 12px;
        height: 12px;
        display: inline-block;
    }

    .btn.disabled {
        opacity: 0;
    }
}

#mv-segment-body {
    padding-left: 30px;
    padding-right: 30px;
    background-color: white;

    min-height: 5rem;;

    p:last-child, table:last-child {
        margin-bottom: 0;
    }
}

#mv-segment-footer {
    padding-top: 2em;
    padding-bottom: 1.5em;
    background-color: white;

    .row {
        align-items: center;
    }

    .mv-social-logo {
        display: inline-block;

        svg {
            height: 3rem;
            fill: #3f3d3b;
        }
    }

    .mv-social-logo + .mv-social-logo {
        padding-left: 10px;
    }

    .mv-metavus-logo {
        height: 28px;
    }
}

#mv-vocabsearchpopup {
    h3 {
        font-size: 1.1em;
        font-weight: bold;
        margin-bottom: 1rem;
    }

    .TermsAssigned + span + h3 {
        margin-top: 2rem;
    }

    .TermsAssigned + span {
        margin-top: 2rem;
    }

    .TermsAvailable, .TermsAssigned {
        margin-left: 1rem;
        line-height: 1.5;

        label {
            display: inline;
        }
    }

    .mv-num-results-per-page {
        float: right;

        input {
            width: 3em;
        }
    }

    .mv-search-pagination {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;

        display: inline-block;
        width: 100%;
        text-align: center;

        .btn {
            font-size: 0.875rem;
        }

        .mv-pagination-left {
            float: left;
        }

        .mv-pagination-right {
            float: right;
        }

        .mv-pagination-center {
            display: inline-block;
            padding-top: 4px;
        }
    }
}

div.ui-dialog[aria-describedby="mv-vocabsearchpopup"] {
    .ui-dialog-title {
        font-size: 1.2em;
        font-weight: bold;
    }
}


/* ----- 7: LOCAL (PAGE-SPECIFIC) STYLES ---------------------------------- */

#page-addresourcecomment {
    #mv-comment-char-count-container {
        margin-bottom: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    #mv-comment-char-count-progress {
        margin-top: 10px;
        height: 12px;
        width: 344px;
    }
}

#page-advancedsearch {
    .mv-advanced-field-column {
        select {
            width: 100%;
        }
    }

    .mv-advanced-terms-column {
        input {
            width: 100%;
        }
    }

    .mv-search-limit-field {
        display: inline-block;
        margin-right: 0.5rem;
    }

    .mv-extra-space {
        font-size: 0.5em;
    }

    .mv-limits-entries {
        padding-left: 1rem;
        padding-right: 1rem;
        > div {
            margin-top: 1rem;
            margin-bottom: 1rem;
        }
    }

    .mv-search-limits {
        margin-top: 1em;
        margin-bottom: 1em;
        h2 {
            margin-bottom: 0;
        }
        .btn {
            margin-bottom: 8px;
        }
    }

    .mv-content-searchfields {
        padding: 1rem;
        .row:first-child {
            line-height: 0.8rem;
            margin-left: -11px;
            padding-top: 8px;
            font-weight: bold;
        }
        .row:last-child .btn {
            margin-left: -1px;
            margin-top: 5px;
            margin-bottom: 3px;
        }
        .mv-clone-parent {
            line-height: 0.4rem;
        }
    }

    .mv-limits-section {
        padding-top: 0.5em;
    }

    .mv-search-header {
        h2 {
            display: inline-block;
            margin-right: 1rem;
        }
    }

    .mv-adv-search-tips {
        margin-top: 20px;
        padding: 1.5rem;
        background-color: #F8F9FA;
        dt {
            margin-top: 1.5rem;
            margin-bottom: 0.5rem;
        }
        h3 {
            margin-bottom: 0;
        }
        code {
            color: #DB1A74;
        }
    }
}

#page-browseresources {
    table th, table td {
        border: none;
    }
    table thead {
        border-bottom: solid 1px #DEE2E6;
        border-top: solid 1px #DEE2E6;
    }
}

#page-displaycollection {
    /* Collection description */
    h1 + div {
        margin-bottom: 2rem;
    }

    .mv-transport-controls:nth-of-type(2) {
        margin-bottom: 10px;
    }
    .mv-transport-controls:nth-of-type(4) {
        margin-top: -10px;
    }
}

#page-editmetadatafield {
    tr.mfe {
        textarea {
            width: 100%;
        }
    }
}

#page-editresource {
  .mv-fieldtable {

    textarea, input[type="text"] {
       width: 100%;
    }

    .table-sm {
       display: inline-block;
       background-color: transparent;
       tr {
         background-color: transparent;
         td {
           border: none;
         }
       }
     }
  }
}

#page-edituser {
    .mv-form-fieldtype-customcontent {
        .mv-itemlistui {
            .thead-dark {
                th {
                    opacity: 0.66;
                    text-align: left;
                }
            }
        }
    }
}

#page-fullrecord {
    .mv-stdtitle {
        h1 {
            margin-bottom: 0;
        }
        .btn {
            float: right;
        }
    }
    .mv-stdurl {
        a {
            color: #606060;
            text-decoration: underline;
            text-decoration-color: #BBBBBB;
        }
        a:hover {
            color: #0056b3;
        }
        margin-bottom: 1.5ex;
    }
    .mv-stdscreenshot {
        img {
            float: right;
            margin-left: 1em;
            margin-bottom: 1ex;
        }
    }
    .mv-stddescription {
        margin-bottom: 1.5ex;
    }
    .mv-mfield-group {
        background-color: #F3F3F3;
        border: 1px solid #C3C3C3;
        margin-top: 2ex;
        margin-bottom: 2ex;
        margin-left: 0;
        padding: 1.5ex 0 1.5ex 0;
    }
    .mv-mfield-row {
        margin-bottom: 0.75ex;
        margin-top: 0.75ex;
        .btn {
            float: right;
        }
    }
    .mv-mfield-label {
        font-weight: bold;
    }
    .mv-mfield-value {
        ul {
            margin: 0;
            padding: 0;
            list-style-type: none;
        }
    }
    .mv-mfield-value-controlledname,
    .mv-mfield-value-tree {
        font-style: italic;
    }
    .mv-mfield-value-stillimage {
        li {
            margin-bottom: 1ex;
        }
        li:last-of-type {
            margin-bottom: 0;
        }
    }
    .mv-comments {
        margin-top: 3ex;
        .btn {
            float: right;
        }
    }
}

#page-home {
    .mv-content-newresources {
        .mv-section-body {
            margin-top: 10px;
            margin-bottom: 10px;
        }
    }

    #mv-content-wrapper {
        margin-top: 22px;
    }

    .mv-content-featuredresources {
        margin-left: 2px;
    }

    .mv-collection-list {
        margin-bottom: 30px;

        .mv-collection {
            clear: both;

            .mv-collection-tag {
                float: left;
                font-size: 3.18rem;
                padding-top: 0.18rem;
                width: 3.6rem;
                height: 3.6rem;
                line-height: 3.6rem;
                margin-right: 1rem;
                text-align: center;
                color: white;
                font-weight: bold;
                border-radius: $BlockCornerRadius;
            }

            .mv-collection-name {
                padding-top: 0.5rem;
                font-size: 1.273rem;
                font-weight: 500;
                line-height: 1.3rem;
            }

            .mv-collection-items {
                font-size: 0.9rem;
                color: #787673;
            }
        }

        .mv-collection + .mv-collection {
            margin-top: 1.8rem;
        }
    }
    .mv-collection-list::after {
        content: '';
        display: block;
        clear: both;
    }

    .mv-news {
        margin-top: 20px;
        clear: both;

        h3.blog-title {
            font-size: 1.273rem;
            font-weight: 500;
            margin-top: -2px;
            margin-bottom: 0;
        }

        .blog-date {
            font-size: 0.9rem;
            color: #787673;
            display: inline-block;
            margin-bottom: 1rem;
        }

        .BlogEntrySummary {
            padding: 0;
        }

        .social-media-share {
            padding: 1rem 0;
        }
    }

    .mv-section-footer {
        margin-top: 1rem;
    }
}

#page-mdhome {
    td > a:not(.btn) {
        color: #606060;
        text-decoration: underline;
        text-decoration-color: #BBBBBB;
    }
    td > a:not(.btn):hover {
        color: #0056b3;
    }
}

#page-metadatafieldordering {
    .list-group-item {
        padding-top: 0;
        padding-bottom: 0;
        border: none;
    }

    .mv-mfo-save-btn {
        text-align: right;
        padding-right: 8%;
    }
}

#page-p_folders_viewfolder {
    .mv-folders-items {
        margin-top: 7px;
    }
}

#page-p_pages_displaypage {
    .mv-pages-edit-info {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        margin-top: 42px;
    }
}

#page-p_resourceexporter_exportresources {
    .btn-sm {
        padding: 3.5px 7px;
    }
    .CheckAllFields, .UncheckAllFields {
        color: #606060;
        cursor: pointer;
        text-decoration: underline;
        text-decoration-color: #BBBBBB;
    }
    .CheckAllFields:hover, .UncheckAllFields:hover {
        color: #0056b3;
    }
}

#page-p_secondarynavigation_editnav {
    li {
        margin-top: 0.7em;
    }
    label:nth-of-type(2) {
        margin-left: 10px;
    }
}

#page-plugins {
    table.mv-itemlistui tr td:last-child {
        white-space: nowrap;
    }
}

#page-searchresults {
    h1 {
        font-size: 2.15rem;
        margin-bottom: 1.5rem;
    }

    h1, a.mv-link-advancedsearch {
        color: #6D7174;

        svg {
            fill: #5E6164;
            margin-top: -6px;
            padding-right: 3px;
        }
    }

    .mv-search-description, .mv-transport-controls, .mv-link-advancedsearch {
        font-size: 16px;
        b, strong {
            font-weight: 500;
        }
    }

    .ui-tabs-tab {
        strong {
            font-weight: 500;
        }
    }

    .mv-search-facets {
        b {
            font-size: 16px;
            font-weight: 500;
        }
    }

    .mv-transport-controls {
        .btn.btn-sm {
            font-size: 14px;
            line-height: 14px;
        }
    }

    .col.text-right {
        .mv-transport-controls {
            display: inline-block;

            .row {
                display: inline-block;
                width: 100%;
                padding-left: 0;
                padding-right: 0;
                margin-left: 0;
                margin-right: 0;

                .col-2, .col-8, .col-10, .col-12 {
                    position: static;
                    display: inline-block;
                    width: unset;
                    max-width: unset;
                }

                .col-2, .col-8, .col-12 {
                    padding-left: 0;
                    padding-right: 0;
                }

                .col-10 {
                    padding-left: 10px;
                    padding-right: 10px;
                }
            }
        }
    }

    .ui-tabs {
        padding: 0;
        border: none;
    }

    .ui-tabs-panel {
        padding-left: 0;
        padding-right: 0;
    }

    .ui-tabs-nav {
        padding: 0;
        border: none;

        li.ui-tabs-tab:first-child {
            margin-left: 15px;
        }

    }

    .ui-tabs-tab {
        border: none;
        background: transparent;
    }

    .ui-tabs-tab.ui-tabs-active {
        background: white;
        border: none;
        a {
            color: black;
        }
    }

    .ui-tabs-tab {
        a {
            color: #707070;
        }
    }

    .ui-widget-header {
        background: #F5F5F5;
    }

    .mv-transport-controls {
        .btn-sm {
            font-weight: bold;
            margin-top: -2px;

            padding-left: 5px;
            padding-right: 5px;
        }

    }

    .mv-search-sort-form {
        select {
            width: calc(100% - 11ex);
            height: fit-content;
        }
    }

    .mv-search-header {
        padding-top: 7px;
        padding-bottom: 20px;

        .mv-search-description {
            strong {
                padding-left: 0.25rem;
            }
        }
    }

    .mv-search-footer {
        .mv-transport-controls {
            padding-top: 16px;

            .col-12.text-center {
                text-align: right !important;
            }
        }
    }
}

#page-sysadmin {
    .mv-body h1 {
        padding-top: 2rem;
    }
    .mv-content-sysadmin-logmsgs-row {
        td.mv-logmsgs-message {
            word-break: break-all;
            a {
                color: #606060;
                text-decoration: underline;
                text-decoration-color: #BBBBBB;
            }
            a:hover {
                color: #0056b3;
            }
        }
    }
}

/* ----- 8: FONT DEFINITIONS ---------------------------------------------- */

/* font-weight: 100 (Thin) */
@font-face {
    font-family: "LibreFranklin";
    font-weight: 100;
    src: url("../fonts/LibreFranklin-Thin.ttf") format('truetype');
}
@font-face {
    font-family: "LibreFranklin";
    font-weight: 100;
    font-style: italic;
    src: url("../fonts/LibreFranklin-ThinItalic.ttf") format('truetype');
}

/* font-weight: 200 (ExtraLight) */
@font-face {
    font-family: "LibreFranklin";
    font-weight: 200;
    src: url("../fonts/LibreFranklin-ExtraLight.ttf") format('truetype');
}
@font-face {
    font-family: "LibreFranklin";
    font-weight: 200;
    font-style: italic;
    src: url("../fonts/LibreFranklin-ExtraLightItalic.ttf") format('truetype');
}

/* font-weight: 300 (Light) */
@font-face {
    font-family: "LibreFranklin";
    font-weight: 300;
    src: url("../fonts/LibreFranklin-Light.ttf") format('truetype');
}
@font-face {
    font-family: "LibreFranklin";
    font-weight: 300;
    font-style: italic;
    src: url("../fonts/LibreFranklin-LightItalic.ttf") format('truetype');
}

/* font-weight: 400 (Normal / Regular) */
@font-face {
    font-family: "LibreFranklin";
    font-weight: normal;
    src: url("../fonts/LibreFranklin-Regular.ttf") format('truetype');
}
@font-face {
    font-family: "LibreFranklin";
    font-style: italic;
    src: url("../fonts/LibreFranklin-Italic.ttf") format('truetype');
}

/* font-weight: 500 (Medium) */
@font-face {
    font-family: "LibreFranklin";
    font-weight: 500;
    src: url("../fonts/LibreFranklin-Medium.ttf") format('truetype');
}
@font-face {
    font-family: "LibreFranklin";
    font-weight: 500;
    font-style: italic;
    src: url("../fonts/LibreFranklin-MediumItalic.ttf") format('truetype');
}

/* font-weight: 600 (Demibold) */
@font-face {
    font-family: "LibreFranklin";
    font-weight: 600;
    src: url("../fonts/LibreFranklin-SemiBold.ttf") format('truetype');
}
@font-face {
    font-family: "LibreFranklin";
    font-weight: 600;
    font-style: italic;
    src: url("../fonts/LibreFranklin-SemiBoldItalic.ttf") format('truetype');
}

/* font-weight: 700 (Bold) */
@font-face {
    font-family: "LibreFranklin";
    font-weight: bold;
    src: url("../fonts/LibreFranklin-Bold.ttf") format('truetype');
}
@font-face {
    font-family: "LibreFranklin";
    font-style: italic;
    font-weight: bold;
    src: url("../fonts/LibreFranklin-BoldItalic.ttf") format('truetype');
}

/* font-weight: 800 (Extra Bold) */
@font-face {
    font-family: "LibreFranklin";
    font-weight: 800;
    src: url("../fonts/LibreFranklin-ExtraBold.ttf") format('truetype');
}
@font-face {
    font-family: "LibreFranklin";
    font-weight: 800;
    font-style: italic;
    src: url("../fonts/LibreFranklin-ExtraBoldItalic.ttf") format('truetype');
}

/* font-weight: 900 (Black) */
@font-face {
    font-family: "LibreFranklin";
    font-weight: 900;
    src: url("../fonts/LibreFranklin-Black.ttf") format('truetype');
}
@font-face {
    font-family: "LibreFranklin";
    font-weight: 900;
    font-style: italic;
    src: url("../fonts/LibreFranklin-BlackItalic.ttf") format('truetype');
}
